<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>怀孕日记 💕</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #ffeef8 0%, #f0f8ff 50%, #fff0f5 100%);
            min-height: 100vh;
            padding: 20px;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            background: linear-gradient(45deg, #ff6b9d, #c44569);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            animation: pulse 2s infinite;
        }

        .header p {
            font-size: 1.2em;
            color: #666;
        }

        /* 孕期计算器样式 */
        .pregnancy-calculator {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
            text-align: center;
            color: white;
            border: none;
        }

        .pregnancy-calculator h2 {
            color: white;
            margin-bottom: 20px;
            font-size: 1.8em;
            font-weight: 600;
        }

        .pregnancy-calculator p {
            color: rgba(255,255,255,0.9);
            font-size: 1.1em;
        }

        .pregnancy-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .info-card {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            padding: 25px;
            border-radius: 15px;
            border: none;
            color: white;
            box-shadow: 0 6px 20px rgba(240, 147, 251, 0.3);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .info-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
        }

        .info-card h3 {
            color: white;
            margin-bottom: 10px;
            font-weight: 600;
            font-size: 1.2em;
        }

        .info-card .number {
            font-size: 2em;
            font-weight: bold;
            color: #e91e63;
            margin: 10px 0;
        }

        /* 主容器布局 */
        .main-container {
            display: flex;
            min-height: 100vh;
        }

        /* 左侧导航菜单 */
        .sidebar {
            width: 280px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
            padding: 20px 0;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
            z-index: 1000;
        }

        .sidebar-header {
            text-align: center;
            padding: 20px;
            border-bottom: 1px solid rgba(255, 107, 157, 0.2);
            margin-bottom: 20px;
        }

        .sidebar-header h1 {
            color: #ff6b9d;
            font-size: 1.8em;
            margin: 0;
            font-weight: bold;
        }

        .sidebar-header p {
            color: #666;
            margin: 5px 0 0 0;
            font-size: 0.9em;
        }

        /* 导航菜单项 */
        .nav-menu {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .nav-item {
            margin: 5px 15px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            color: #666;
            text-decoration: none;
            border-radius: 12px;
            transition: all 0.3s ease;
            font-weight: 500;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
        }

        .nav-link:hover {
            background: rgba(255, 107, 157, 0.1);
            color: #ff6b9d;
            transform: translateX(5px);
        }

        .nav-link.active {
            background: linear-gradient(45deg, #ff6b9d, #c44569);
            color: white;
            box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
        }

        .nav-link .icon {
            font-size: 1.2em;
            margin-right: 12px;
            width: 20px;
            text-align: center;
        }

        /* 主内容区域 */
        .content-area {
            margin-left: 280px;
            flex: 1;
            padding: 20px;
            background: transparent;
        }

        .content-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(20px);
        }

        /* 标签内容样式 */
        .tab-content {
            display: none;
            animation: fadeIn 0.5s ease-in-out;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .week-info {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .week-info h2 {
            color: #e74c3c;
            margin-bottom: 20px;
            font-size: 1.8em;
        }

        .anemia-alert {
            background: linear-gradient(45deg, #ffebee, #fce4ec);
            border-left: 5px solid #e91e63;
            padding: 20px;
            margin-bottom: 20px;
            border-radius: 10px;
        }

        .anemia-alert h3 {
            color: #c2185b;
            margin-bottom: 10px;
        }

        .nutrition-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .nutrition-card {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: none;
            color: white;
        }

        .nutrition-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
        }

        .nutrition-card h3 {
            color: white;
            margin-bottom: 15px;
            font-size: 1.3em;
            display: flex;
            align-items: center;
            font-weight: 600;
        }

        .nutrition-card h3::before {
            content: "🌸";
            margin-right: 10px;
            font-size: 1.2em;
        }

        .food-list {
            list-style: none;
            padding: 0;
        }

        .food-list li {
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
            position: relative;
            padding-left: 20px;
        }

        .food-list li::before {
            content: "💖";
            position: absolute;
            left: 0;
            top: 8px;
        }

        .weekly-plan {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .weekly-plan h2 {
            color: #8e44ad;
            margin-bottom: 25px;
            text-align: center;
            font-size: 1.8em;
        }

        .week-timeline {
            position: relative;
            padding-left: 30px;
        }

        .week-timeline::before {
            content: '';
            position: absolute;
            left: 15px;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(to bottom, #ff6b9d, #c44569);
            border-radius: 2px;
        }

        .week-item {
            position: relative;
            margin-bottom: 30px;
            background: rgba(255, 255, 255, 0.8);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .week-item::before {
            content: '';
            position: absolute;
            left: -37px;
            top: 20px;
            width: 12px;
            height: 12px;
            background: #e74c3c;
            border-radius: 50%;
            border: 3px solid #fff;
            box-shadow: 0 0 0 3px #e74c3c;
        }

        .week-item h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.2em;
        }

        /* 新增标签页样式 */
        .disease-section, .delivery-section, .babycare-section {
            margin-bottom: 30px;
        }
        
        .disease-card, .delivery-card, .babycare-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border-left: 4px solid #ff6b9d;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .disease-card:hover, .delivery-card:hover, .babycare-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        }
        
        .disease-card h4, .delivery-card h4, .babycare-card h4 {
            color: #ff6b9d;
            margin-bottom: 15px;
            font-size: 1.2em;
        }
        
        .checklist h5 {
            color: #ff6b9d;
            margin: 15px 0 10px 0;
            font-size: 16px;
        }
        
        .checklist ul {
            margin-bottom: 15px;
        }
        
        .disease-card ul, .delivery-card ul, .babycare-card ul {
            list-style: none;
            padding-left: 0;
        }
        
        .disease-card li, .delivery-card li, .babycare-card li {
            padding: 8px 0;
            border-bottom: 1px solid #f5f5f5;
            position: relative;
            padding-left: 25px;
        }
        
        .disease-card li::before, .delivery-card li::before, .babycare-card li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 8px;
            color: #ff6b9d;
            font-weight: bold;
        }
        
        .disease-card li:last-child, .delivery-card li:last-child, .babycare-card li:last-child {
            border-bottom: none;
        }

        .tips-section {
            background: linear-gradient(45deg, #fff5f5, #fef7f7);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            border: 2px solid #ffb6c1;
        }

        .tips-section h2 {
            color: #d63384;
            margin-bottom: 20px;
            text-align: center;
        }

        .tips-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .tip-card {
            background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
            padding: 25px;
            border-radius: 15px;
            border: none;
            color: white;
            box-shadow: 0 6px 20px rgba(255, 154, 158, 0.3);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .tip-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(255, 154, 158, 0.4);
        }

        .tip-card h4 {
            color: white;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .deployment-section {
            background: linear-gradient(45deg, #e8f5e8, #f0f8f0);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            border: 2px solid #90ee90;
        }

        .deployment-section h2 {
            color: #2e7d32;
            margin-bottom: 20px;
            text-align: center;
        }

        .deployment-steps {
            background: rgba(255, 255, 255, 0.9);
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 20px;
        }

        .deployment-steps h3 {
            color: #1976d2;
            margin-bottom: 15px;
        }

        .deployment-steps ol {
            padding-left: 20px;
        }

        .deployment-steps li {
            margin-bottom: 10px;
            line-height: 1.6;
        }

        .code-block {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
            margin: 10px 0;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            overflow-x: auto;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .floating {
            animation: float 3s ease-in-out infinite;
        }

        .love-message {
            background: linear-gradient(45deg, #ffebee, #fce4ec);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            margin-top: 30px;
            border: 2px solid #ffb6c1;
        }

        .love-message h2 {
            color: #c2185b;
            margin-bottom: 15px;
        }

        .love-message p {
            font-size: 1.1em;
            color: #666;
            font-style: italic;
        }

        /* 左侧导航布局样式 */
        .main-container {
            display: flex;
            min-height: 100vh;
        }

        .sidebar {
            width: 280px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 0;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            z-index: 1000;
        }

        .sidebar-header {
            padding: 30px 20px;
            text-align: center;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .sidebar-header h2 {
            margin: 0 0 10px 0;
            font-size: 1.5em;
            font-weight: 600;
        }

        .sidebar-header p {
            margin: 0;
            opacity: 0.8;
            font-size: 0.9em;
        }

        .nav-menu {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .nav-item {
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .nav-link {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 15px 20px;
            background: none;
            border: none;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            font-size: 0.95em;
        }

        .nav-link:hover {
            background: rgba(255,255,255,0.1);
            padding-left: 25px;
        }

        .nav-link.active {
            background: rgba(255,255,255,0.2);
            border-right: 4px solid #ff6b9d;
        }

        .nav-link .icon {
            margin-right: 12px;
            font-size: 1.1em;
        }

        .content-area {
            flex: 1;
            margin-left: 280px;
            padding: 20px;
            background: #f8f9fa;
            min-height: 100vh;
        }

        /* 优化孕期疾病等新增栏目的样式 */
        .disease-section, .delivery-section, .babycare-section {
            background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            border-left: 5px solid #ff6b9d;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .disease-section:hover, .delivery-section:hover, .babycare-section:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        }

        .disease-section h3, .delivery-section h3, .babycare-section h3 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.3em;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .disease-card, .delivery-card, .babycare-card {
            background: rgba(255,255,255,0.9);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            border: 1px solid #e9ecef;
            transition: all 0.3s ease;
        }

        .disease-card:hover, .delivery-card:hover, .babycare-card:hover {
            background: rgba(255,255,255,1);
            border-color: #ff6b9d;
            transform: translateX(5px);
        }

        .disease-card h4, .delivery-card h4, .babycare-card h4 {
            color: #e91e63;
            margin-bottom: 15px;
            font-size: 1.1em;
            font-weight: 600;
            border-bottom: 2px solid #ffebee;
            padding-bottom: 8px;
        }

        .disease-card ul, .delivery-card ul, .babycare-card ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .disease-card li, .delivery-card li, .babycare-card li {
            position: relative;
            padding: 8px 0 8px 25px;
            margin-bottom: 8px;
            line-height: 1.6;
            border-bottom: 1px solid #f8f9fa;
            transition: all 0.3s ease;
        }

        .disease-card li:hover, .delivery-card li:hover, .babycare-card li:hover {
            background: #fff5f8;
            padding-left: 30px;
        }

        .disease-card li::before, .delivery-card li::before, .babycare-card li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 8px;
            color: #ff6b9d;
            font-weight: bold;
            font-size: 1.1em;
        }

        .disease-card li:last-child, .delivery-card li:last-child, .babycare-card li:last-child {
            border-bottom: none;
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }
            
            .nutrition-grid {
                grid-template-columns: 1fr;
            }
            
            .tips-grid {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                width: 100%;
                height: auto;
                position: relative;
            }
            
            .content-area {
                margin-left: 0;
            }
            
            .nav-menu {
                display: flex;
                overflow-x: auto;
                white-space: nowrap;
            }
            
            .nav-item {
                flex-shrink: 0;
                border-bottom: none;
                border-right: 1px solid rgba(255,255,255,0.1);
            }
        }
    </style>
</head>
<body>
    <div class="main-container">

        <!-- 左侧导航菜单 -->
        <div class="sidebar">
            <div class="sidebar-header">
                <h2>💕 怀孕日记</h2>
                <p>用爱记录每一天</p>
            </div>
            
            <ul class="nav-menu">
                <li class="nav-item">
                    <button class="nav-link active" onclick="showTab('overview')">
                        <span class="icon">📊</span>
                        孕期概览
                    </button>
                </li>
                <li class="nav-item">
                    <button class="nav-link" onclick="showTab('nutrition')">
                        <span class="icon">🍎</span>
                        营养餐食
                    </button>
                </li>
                <li class="nav-item">
                    <button class="nav-link" onclick="showTab('health-issues')">
                        <span class="icon">🏥</span>
                        孕期疾病
                    </button>
                </li>
                <li class="nav-item">
                    <button class="nav-link" onclick="showTab('delivery')">
                        <span class="icon">👶</span>
                        生产指南
                    </button>
                </li>
                <li class="nav-item">
                    <button class="nav-link" onclick="showTab('baby-care')">
                        <span class="icon">🤱</span>
                        宝宝护理
                    </button>
                </li>
                <li class="nav-item">
                    <button class="nav-link" onclick="showTab('precautions')">
                        <span class="icon">⚠️</span>
                        孕期注意
                    </button>
                </li>
                <li class="nav-item">
                    <button class="nav-link" onclick="showTab('baby-items')">
                        <span class="icon">🍼</span>
                        婴儿用品
                    </button>
                </li>
                <li class="nav-item">
                    <button class="nav-link" onclick="showTab('timeline')">
                        <span class="icon">📅</span>
                        孕期时间线
                    </button>
                </li>
                <li class="nav-item">
                    <button class="nav-link" onclick="showTab('tips')">
                        <span class="icon">💡</span>
                        贴心提示
                    </button>
                </li>
            </ul>
        </div>

        <!-- 主内容区域 -->
        <div class="content-area">
            <!-- 孕期概览标签页 -->
            <div id="overview" class="tab-content active">
                <!-- 孕期计算器 -->
                <div class="pregnancy-calculator">
                    <h2>🗓️ 孕期时间计算器</h2>
                    <p>基准日期：2025年8月1日（12周5天）</p>
                    <div class="pregnancy-info">
                        <div class="info-card">
                            <h3>📅 今天日期</h3>
                            <div class="number" id="current-date"></div>
                        </div>
                        <div class="info-card">
                            <h3>🤱 怀孕天数</h3>
                            <div class="number" id="pregnancy-days"></div>
                            <p>天</p>
                        </div>
                        <div class="info-card">
                            <h3>📊 孕期周数</h3>
                            <div class="number" id="pregnancy-weeks"></div>
                        </div>
                        <div class="info-card">
                            <h3>👶 预产期</h3>
                            <div class="number" id="due-date"></div>
                        </div>
                        <div class="info-card">
                            <h3>⏰ 距离预产期</h3>
                            <div class="number" id="days-to-due"></div>
                            <p>天</p>
                        </div>
                    </div>
                </div>
            </div>

        <!-- 营养餐食标签页 -->
        <div id="nutrition" class="tab-content">
            <div class="week-info">
                <h2>🌸 当前孕期营养状况</h2>
                <div class="anemia-alert">
                    <h3>⚠️ 贫血关注提醒</h3>
                    <p><strong>亲爱的雪莹，</strong>刚做完唐筛和血液检查后出现贫血是很常见的，不要担心。通过合理的饮食调理和充足的休息，我们一起来改善这个情况。记住，你是最棒的妈妈！</p>
                </div>
                <p><strong>胎儿发育：</strong>宝宝现在五官更加清晰，开始长出细小的毛发，听觉系统正在发育。</p>
                <p><strong>妈妈变化：</strong>子宫继续增大，可能会感到腰酸背痛，需要更多的铁质和蛋白质。</p>
            </div>

            <div class="nutrition-grid">
                <div class="nutrition-card floating">
                    <h3>补铁食物 (改善贫血)</h3>
                    <ul class="food-list">
                        <li><strong>红肉类：</strong>瘦牛肉、瘦猪肉、羊肉</li>
                        <li><strong>动物肝脏：</strong>猪肝、鸡肝 (每周1-2次)</li>
                        <li><strong>血制品：</strong>猪血、鸭血豆腐</li>
                        <li><strong>海鲜：</strong>牡蛎、扇贝、虾</li>
                        <li><strong>蛋类：</strong>鸡蛋黄、鹌鹑蛋</li>
                        <li><strong>豆类：</strong>黑豆、红豆、扁豆</li>
                    </ul>
                </div>

                <div class="nutrition-card floating">
                    <h3>促进铁吸收</h3>
                    <ul class="food-list">
                        <li><strong>维C丰富：</strong>橙子、猕猴桃、草莓</li>
                        <li><strong>新鲜蔬菜：</strong>西红柿、青椒、西兰花</li>
                        <li><strong>酸性食物：</strong>柠檬水、酸奶</li>
                        <li><strong>避免同食：</strong>茶、咖啡、牛奶 (与铁剂间隔2小时)</li>
                    </ul>
                </div>

                <div class="nutrition-card floating">
                    <h3>优质蛋白质</h3>
                    <ul class="food-list">
                        <li><strong>鱼类：</strong>三文鱼、鲈鱼、带鱼</li>
                        <li><strong>禽肉：</strong>鸡胸肉、鸭肉</li>
                        <li><strong>蛋类：</strong>鸡蛋、鹌鹑蛋</li>
                        <li><strong>奶制品：</strong>牛奶、酸奶、奶酪</li>
                        <li><strong>豆制品：</strong>豆腐、豆浆、腐竹</li>
                    </ul>
                </div>

                <div class="nutrition-card floating">
                    <h3>叶酸与维生素</h3>
                    <ul class="food-list">
                        <li><strong>绿叶菜：</strong>菠菜、小白菜、芦笋</li>
                        <li><strong>坚果：</strong>核桃、杏仁、花生</li>
                        <li><strong>水果：</strong>香蕉、苹果、葡萄</li>
                        <li><strong>全谷物：</strong>燕麦、糙米、全麦面包</li>
                    </ul>
                </div>

                <div class="nutrition-card floating">
                    <h3>钙质补充</h3>
                    <ul class="food-list">
                        <li><strong>奶制品：</strong>牛奶、酸奶、奶酪</li>
                        <li><strong>豆制品：</strong>豆腐、豆干、豆浆</li>
                        <li><strong>海产品：</strong>虾皮、海带、紫菜</li>
                        <li><strong>坚果：</strong>芝麻、杏仁、榛子</li>
                        <li><strong>绿叶菜：</strong>小白菜、芥蓝、油菜</li>
                    </ul>
                </div>

                <div class="nutrition-card floating">
                    <h3>DHA补充</h3>
                    <ul class="food-list">
                        <li><strong>深海鱼：</strong>三文鱼、金枪鱼、沙丁鱼</li>
                        <li><strong>坚果：</strong>核桃、亚麻籽</li>
                        <li><strong>藻类：</strong>海带、紫菜</li>
                        <li><strong>蛋类：</strong>DHA强化鸡蛋</li>
                        <li><strong>补充剂：</strong>孕妇专用DHA胶囊</li>
                    </ul>
                </div>
            </div>
        </div>

        <!-- 孕期疾病注意事项标签页 -->
        <div id="health-issues" class="tab-content">
            <h2>🏥 孕期常见疾病与症状</h2>
            
            <div class="health-section">
                <h3>🍯 妊娠糖尿病（糖耐）</h3>
                <div class="health-card">
                    <h4>症状表现</h4>
                    <ul>
                        <li>口渴、多饮、多尿</li>
                        <li>疲劳乏力</li>
                        <li>视力模糊</li>
                        <li>体重异常增长</li>
                    </ul>
                    <h4>注意事项</h4>
                    <ul>
                        <li>控制饮食，少食多餐</li>
                        <li>避免高糖、高脂食物</li>
                        <li>适量运动，如散步</li>
                        <li>定期监测血糖</li>
                        <li>按医嘱用药</li>
                    </ul>
                </div>
            </div>
            
            <div class="health-section">
                <h3>😷 嘴巴发苦</h3>
                <div class="health-card">
                    <h4>可能原因</h4>
                    <ul>
                        <li>孕期激素变化</li>
                        <li>胃酸反流</li>
                        <li>口腔卫生问题</li>
                        <li>肝胆功能异常</li>
                        <li>缺乏维生素B</li>
                    </ul>
                    <h4>缓解方法</h4>
                    <ul>
                        <li>多喝温开水</li>
                        <li>保持口腔清洁</li>
                        <li>少食多餐，避免空腹</li>
                        <li>多吃新鲜水果</li>
                        <li>如持续严重需就医</li>
                    </ul>
                </div>
            </div>
            
            <div class="health-section">
                <h3>🤢 孕吐严重</h3>
                <div class="health-card">
                    <h4>缓解方法</h4>
                    <ul>
                        <li>少食多餐，避免空腹</li>
                        <li>吃干燥食物如苏打饼干</li>
                        <li>避免油腻、辛辣食物</li>
                        <li>闻柠檬或薄荷</li>
                        <li>充足休息</li>
                    </ul>
                </div>
            </div>
            
            <div class="health-section">
                <h3>🩸 孕期贫血</h3>
                <div class="health-card">
                    <h4>症状</h4>
                    <ul>
                        <li>疲劳乏力</li>
                        <li>面色苍白</li>
                        <li>心悸气短</li>
                        <li>头晕眼花</li>
                    </ul>
                    <h4>改善方法</h4>
                    <ul>
                        <li>多吃含铁食物</li>
                        <li>补充叶酸</li>
                        <li>避免茶、咖啡</li>
                        <li>按医嘱补充铁剂</li>
                    </ul>
                </div>
            </div>
            
            <div class="health-section">
                <h3>🦵 孕期水肿</h3>
                <div class="health-card">
                    <h4>缓解方法</h4>
                    <ul>
                        <li>抬高双腿休息</li>
                        <li>适量运动</li>
                        <li>控制盐分摄入</li>
                        <li>穿弹性袜</li>
                        <li>左侧卧位睡觉</li>
                    </ul>
                </div>
            </div>
            
            <div class="health-section">
                <h3>💤 孕期失眠</h3>
                <div class="health-card">
                    <h4>改善方法</h4>
                    <ul>
                        <li>建立规律作息</li>
                        <li>睡前泡脚</li>
                        <li>使用孕妇枕</li>
                        <li>避免睡前进食</li>
                        <li>保持室内通风</li>
                    </ul>
                </div>
            </div>
            
            <div class="emergency-notice">
                <h3>⚠️ 紧急就医情况</h3>
                <ul>
                    <li>阴道出血</li>
                    <li>剧烈腹痛</li>
                    <li>持续头痛、视力模糊</li>
                    <li>胎动异常减少</li>
                    <li>高烧不退</li>
                    <li>严重呕吐无法进食</li>
                </ul>
            </div>
        </div>
        
        <!-- 生产指南标签页 -->
        <div id="delivery" class="tab-content">
            <h2>👶 生产指南</h2>
            
            <div class="delivery-section">
                <h3>🎒 产前准备</h3>
                <div class="delivery-card">
                    <h4>待产包清单</h4>
                    <div class="checklist">
                        <h5>妈妈用品</h5>
                        <ul>
                            <li>身份证、医保卡、产检资料</li>
                            <li>睡衣2-3套（前开扣）</li>
                            <li>内裤5-6条（一次性）</li>
                            <li>哺乳文胸2-3个</li>
                            <li>产妇卫生巾</li>
                            <li>毛巾、洗漱用品</li>
                            <li>拖鞋、袜子</li>
                            <li>红糖、巧克力</li>
                        </ul>
                        <h5>宝宝用品</h5>
                        <ul>
                            <li>新生儿衣服2-3套</li>
                            <li>纸尿裤（NB码）</li>
                            <li>小毛巾、浴巾</li>
                            <li>奶瓶、奶粉</li>
                            <li>婴儿湿巾</li>
                            <li>包被、小帽子</li>
                        </ul>
                    </div>
                </div>
            </div>
            
            <div class="delivery-section">
                <h3>🚨 临产征象</h3>
                <div class="delivery-card">
                    <h4>需要立即就医的情况</h4>
                    <ul>
                        <li><strong>破水：</strong>羊水流出，无论多少都要立即就医</li>
                        <li><strong>规律宫缩：</strong>初产妇5-6分钟一次，经产妇10分钟一次</li>
                        <li><strong>见红：</strong>少量血性分泌物，可观察</li>
                        <li><strong>胎动异常：</strong>胎动明显减少或停止</li>
                    </ul>
                </div>
            </div>
            
            <div class="delivery-section">
                <h3>🏥 分娩过程</h3>
                <div class="delivery-card">
                    <h4>第一产程（开宫口）</h4>
                    <ul>
                        <li>宫口开至10cm，初产妇约12-16小时</li>
                        <li>可以走动、洗澡缓解疼痛</li>
                        <li>少量多次进食，保存体力</li>
                        <li>配合医生检查</li>
                    </ul>
                    
                    <h4>第二产程（胎儿娩出）</h4>
                    <ul>
                        <li>配合宫缩用力</li>
                        <li>听从医生指导</li>
                        <li>保持冷静，正确呼吸</li>
                    </ul>
                    
                    <h4>第三产程（胎盘娩出）</h4>
                    <ul>
                        <li>胎盘自然剥离</li>
                        <li>医生检查是否完整</li>
                        <li>缝合伤口（如有）</li>
                    </ul>
                </div>
            </div>
            
            <div class="delivery-section">
                <h3>🤱 产后护理</h3>
                <div class="delivery-card">
                    <h4>产后2小时观察</h4>
                    <ul>
                        <li>观察出血量</li>
                        <li>监测血压、脉搏</li>
                        <li>检查子宫收缩</li>
                        <li>尽早开始母乳喂养</li>
                    </ul>
                    
                    <h4>产后第一天</h4>
                    <ul>
                        <li>尽早下床活动</li>
                        <li>多喝温开水</li>
                        <li>注意个人卫生</li>
                        <li>观察恶露情况</li>
                    </ul>
                    
                    <h4>月子期护理</h4>
                    <ul>
                        <li>充分休息，保证睡眠</li>
                        <li>营养均衡，多喝汤水</li>
                        <li>保持心情愉快</li>
                        <li>适当运动，促进恢复</li>
                        <li>定期产后检查</li>
                    </ul>
                </div>
            </div>
            
            <div class="delivery-section">
                <h3>💊 剖腹产注意事项</h3>
                <div class="delivery-card">
                    <h4>术前准备</h4>
                    <ul>
                        <li>禁食禁水8小时</li>
                        <li>备皮、插尿管</li>
                        <li>心理准备，放松心情</li>
                    </ul>
                    
                    <h4>术后护理</h4>
                    <ul>
                        <li>平卧6小时后可翻身</li>
                        <li>排气后才能进食</li>
                        <li>伤口保持干燥</li>
                        <li>避免剧烈运动</li>
                        <li>按时复查</li>
                    </ul>
                </div>
            </div>
        </div>
        
        <!-- 宝宝护理标签页 -->
        <div id="baby-care" class="tab-content">
            <h2>👶 宝宝护理指南</h2>
            
            <div class="babycare-section">
                <h3>😴 新生儿睡眠</h3>
                <div class="babycare-card">
                    <h4>睡眠环境</h4>
                    <ul>
                        <li><strong>安全睡姿：</strong>仰卧睡觉，避免趴睡和侧睡</li>
                        <li><strong>睡眠环境：</strong>安静、温度适宜（20-22℃）</li>
                        <li><strong>床铺安全：</strong>硬质床垫，无枕头、毛绒玩具</li>
                        <li><strong>睡眠时间：</strong>新生儿每天睡16-20小时</li>
                    </ul>
                    
                    <h4>睡眠规律培养</h4>
                    <ul>
                        <li>白天保持光线充足，夜晚保持昏暗</li>
                        <li>建立固定的睡前仪式</li>
                        <li>区分白天小睡和夜间睡眠</li>
                        <li>观察宝宝的睡眠信号</li>
                    </ul>
                    
                    <h4>常见睡眠问题</h4>
                    <ul>
                        <li><strong>夜醒频繁：</strong>正常现象，逐渐会改善</li>
                        <li><strong>日夜颠倒：</strong>通过光线和活动调节</li>
                        <li><strong>睡眠不安：</strong>检查是否饿了、尿了或不舒服</li>
                    </ul>
                </div>
            </div>
            
            <div class="babycare-section">
                <h3>👕 新生儿穿衣</h3>
                <div class="babycare-card">
                    <h4>衣物选择</h4>
                    <ul>
                        <li><strong>材质：</strong>纯棉、柔软、透气</li>
                        <li><strong>款式：</strong>前开扣、宽松、易穿脱</li>
                        <li><strong>颜色：</strong>浅色为主，避免深色染料</li>
                        <li><strong>尺寸：</strong>稍大一号，方便活动</li>
                    </ul>
                    
                    <h4>穿衣技巧</h4>
                    <ul>
                        <li>先穿上衣再穿裤子</li>
                        <li>动作轻柔，避免拉扯</li>
                        <li>注意保护宝宝的头部和颈部</li>
                        <li>检查衣服内是否有线头</li>
                    </ul>
                    
                    <h4>不同季节穿衣</h4>
                    <ul>
                        <li><strong>春秋：</strong>内衣+薄外套，根据温度调节</li>
                        <li><strong>夏季：</strong>薄棉衣，注意防晒和通风</li>
                        <li><strong>冬季：</strong>多层穿衣，保暖但不过热</li>
                        <li><strong>判断标准：</strong>摸宝宝后颈部，温热不出汗为宜</li>
                    </ul>
                </div>
            </div>
            
            <div class="babycare-section">
                <h3>🍼 奶粉喂养</h3>
                <div class="babycare-card">
                    <h4>奶粉选择</h4>
                    <ul>
                        <li><strong>年龄段：</strong>选择适合月龄的配方奶粉</li>
                        <li><strong>品牌：</strong>选择知名品牌，质量有保障</li>
                        <li><strong>成分：</strong>接近母乳成分，添加DHA、ARA等</li>
                        <li><strong>特殊需求：</strong>过敏体质选择水解蛋白奶粉</li>
                    </ul>
                    
                    <h4>冲调方法</h4>
                    <ul>
                        <li><strong>水温：</strong>40-50℃温开水</li>
                        <li><strong>比例：</strong>严格按照说明书比例</li>
                        <li><strong>顺序：</strong>先加水再加奶粉</li>
                        <li><strong>搅拌：</strong>轻柔摇匀，避免产生气泡</li>
                        <li><strong>温度测试：</strong>滴在手腕内侧测试温度</li>
                    </ul>
                    
                    <h4>喂养技巧</h4>
                    <ul>
                        <li><strong>姿势：</strong>半坐位，头部略高于身体</li>
                        <li><strong>奶嘴：</strong>选择合适流速的奶嘴</li>
                        <li><strong>节奏：</strong>让宝宝控制吃奶节奏</li>
                        <li><strong>拍嗝：</strong>喂奶中途和结束后要拍嗝</li>
                    </ul>
                    
                    <h4>喂养量参考</h4>
                    <ul>
                        <li><strong>0-1个月：</strong>每次60-90ml，每天8-12次</li>
                        <li><strong>1-2个月：</strong>每次90-120ml，每天6-8次</li>
                        <li><strong>2-3个月：</strong>每次120-150ml，每天5-6次</li>
                        <li><strong>注意：</strong>根据宝宝需求调整，不强迫喂食</li>
                    </ul>
                </div>
            </div>
            
            <div class="babycare-section">
                <h3>🛁 日常护理</h3>
                <div class="babycare-card">
                    <h4>洗澡护理</h4>
                    <ul>
                        <li><strong>频率：</strong>新生儿2-3天一次，大一些可每天洗</li>
                        <li><strong>水温：</strong>37-40℃，用温度计测量</li>
                        <li><strong>时间：</strong>5-10分钟，避免着凉</li>
                        <li><strong>用品：</strong>婴儿专用洗浴用品</li>
                        <li><strong>顺序：</strong>从上到下，先洗脸再洗身体</li>
                    </ul>
                    
                    <h4>脐带护理</h4>
                    <ul>
                        <li>保持脐带干燥清洁</li>
                        <li>每天用75%酒精消毒</li>
                        <li>穿衣时避免摩擦脐带</li>
                        <li>观察是否有红肿、异味</li>
                    </ul>
                    
                    <h4>换尿布</h4>
                    <ul>
                        <li><strong>频率：</strong>及时更换，保持干爽</li>
                        <li><strong>清洁：</strong>用温水或湿巾轻柔清洁</li>
                        <li><strong>护理：</strong>涂抹护臀膏预防红屁股</li>
                        <li><strong>尺寸：</strong>选择合适大小，不要太紧</li>
                    </ul>
                </div>
            </div>
            
            <div class="babycare-section">
                <h3>🚨 异常情况处理</h3>
                <div class="babycare-card">
                    <h4>需要立即就医的情况</h4>
                    <ul>
                        <li><strong>发热：</strong>体温超过38℃</li>
                        <li><strong>呼吸异常：</strong>呼吸急促或困难</li>
                        <li><strong>喂养问题：</strong>拒绝进食或频繁呕吐</li>
                        <li><strong>皮肤异常：</strong>皮疹、黄疸加重</li>
                        <li><strong>行为异常：</strong>异常哭闹或过度安静</li>
                    </ul>
                    
                    <h4>常见问题处理</h4>
                    <ul>
                        <li><strong>吐奶：</strong>正常现象，注意拍嗝</li>
                        <li><strong>便秘：</strong>增加水分，按摩腹部</li>
                        <li><strong>腹泻：</strong>注意补水，观察精神状态</li>
                        <li><strong>湿疹：</strong>保持皮肤干燥，使用温和护肤品</li>
                    </ul>
                </div>
            </div>
        </div>
        
        <!-- 孕期注意事项标签页 -->
        <div id="precautions" class="tab-content">
            <div class="tips-section">
                <h2>⚠️ 孕期重要注意事项</h2>
                <div class="tips-grid">
                    <div class="tip-card">
                        <h4>🚫 饮食禁忌</h4>
                        <p><strong>绝对禁止：</strong>生鱼片、生鸡蛋、未煮熟的肉类、酒精</p>
                        <p><strong>限制摄入：</strong>高汞鱼类（鲨鱼、金枪鱼）、咖啡因（每天<200mg）</p>
                        <p><strong>注意清洗：</strong>生菜、水果要彻底清洗，避免弓形虫感染</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>💊 用药安全</h4>
                        <p><strong>处方药：</strong>任何药物使用前必须咨询医生</p>
                        <p><strong>非处方药：</strong>感冒药、止痛药等也需医生指导</p>
                        <p><strong>中药：</strong>不是所有中药都安全，需专业中医指导</p>
                        <p><strong>保健品：</strong>选择孕妇专用，注意剂量</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🏃‍♀️ 运动指导</h4>
                        <p><strong>推荐运动：</strong>孕妇瑜伽、散步、游泳、孕妇操</p>
                        <p><strong>避免运动：</strong>剧烈运动、接触性运动、高风险活动</p>
                        <p><strong>运动强度：</strong>能够正常对话的强度，每次30分钟</p>
                        <p><strong>注意事项：</strong>避免仰卧位运动，及时补水</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>😴 睡眠建议</h4>
                        <p><strong>睡眠时间：</strong>每晚8-9小时，午休1小时</p>
                        <p><strong>睡眠姿势：</strong>左侧卧位最佳，可用孕妇枕支撑</p>
                        <p><strong>睡前准备：</strong>温水泡脚、听轻音乐、避免电子设备</p>
                        <p><strong>环境要求：</strong>安静、黑暗、温度适宜（18-22°C）</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🌡️ 环境安全</h4>
                        <p><strong>避免接触：</strong>化学品、放射线、有毒气体</p>
                        <p><strong>工作环境：</strong>避免长时间站立、重体力劳动</p>
                        <p><strong>家居安全：</strong>防滑垫、扶手、避免爬高</p>
                        <p><strong>出行安全：</strong>系安全带、避免颠簸路段</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🧘‍♀️ 心理健康</h4>
                        <p><strong>情绪管理：</strong>保持乐观，及时沟通负面情绪</p>
                        <p><strong>压力缓解：</strong>深呼吸、冥想、听音乐</p>
                        <p><strong>社交支持：</strong>与家人朋友分享，参加孕妇课程</p>
                        <p><strong>专业帮助：</strong>必要时寻求心理咨询师帮助</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🩺 产检重要性</h4>
                        <p><strong>定期检查：</strong>按时产检，不要错过任何一次</p>
                        <p><strong>重要检查：</strong>唐筛、糖耐、四维彩超等</p>
                        <p><strong>异常症状：</strong>出血、腹痛、头痛等立即就医</p>
                        <p><strong>记录管理：</strong>保存好所有检查报告</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🌿 日常护理</h4>
                        <p><strong>皮肤护理：</strong>使用孕妇专用护肤品，预防妊娠纹</p>
                        <p><strong>口腔护理：</strong>定期看牙医，使用软毛牙刷</p>
                        <p><strong>乳房护理：</strong>选择合适内衣，准备哺乳</p>
                        <p><strong>个人卫生：</strong>勤洗澡、勤换衣，保持清洁</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- 婴儿用品准备标签页 -->
        <div id="baby-items" class="tab-content">
            <div class="tips-section">
                <h2>🍼 婴儿用品准备清单</h2>
                <div class="tips-grid">
                    <div class="tip-card">
                        <h4>👶 新生儿衣物</h4>
                        <p><strong>连体衣：</strong>纯棉材质，0-3个月码，准备8-10件</p>
                        <p><strong>包被：</strong>纯棉纱布，2-3条，春夏薄款</p>
                        <p><strong>帽子：</strong>纯棉材质，2-3顶，保护头部</p>
                        <p><strong>袜子：</strong>纯棉材质，6-8双，防止着凉</p>
                        <p><strong>手套：</strong>防抓手套，2-3双</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🍼 喂养用品</h4>
                        <p><strong>奶瓶：</strong>玻璃或PPSU材质，120ml和240ml各2个</p>
                        <p><strong>奶嘴：</strong>硅胶材质，S号流量，备用2-3个</p>
                        <p><strong>奶粉：</strong>1段奶粉1罐（备用，母乳优先）</p>
                        <p><strong>奶瓶刷：</strong>清洁奶瓶专用，1套</p>
                        <p><strong>消毒器：</strong>蒸汽消毒锅或消毒液</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🛁 洗护用品</h4>
                        <p><strong>婴儿浴盆：</strong>专用浴盆，带温度计</p>
                        <p><strong>洗发沐浴：</strong>婴儿专用，无泪配方</p>
                        <p><strong>润肤露：</strong>婴儿专用，保湿滋润</p>
                        <p><strong>浴巾：</strong>纯棉材质，2-3条，吸水性好</p>
                        <p><strong>洗脸毛巾：</strong>纯棉纱布，6-8条</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🛏️ 睡眠用品</h4>
                        <p><strong>婴儿床：</strong>实木材质，符合安全标准</p>
                        <p><strong>床垫：</strong>硬度适中，透气性好</p>
                        <p><strong>床单：</strong>纯棉材质，2-3套，易清洗</p>
                        <p><strong>睡袋：</strong>纯棉材质，不同厚度2-3个</p>
                        <p><strong>小夜灯：</strong>柔和光线，方便夜间照料</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🚗 出行用品</h4>
                        <p><strong>婴儿车：</strong>可躺可坐，避震性好</p>
                        <p><strong>安全座椅：</strong>0-4岁适用，符合3C认证</p>
                        <p><strong>背带：</strong>人体工学设计，分散重量</p>
                        <p><strong>妈咪包：</strong>大容量，多分层，方便携带</p>
                        <p><strong>遮阳伞：</strong>防紫外线，保护宝宝</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🩹 护理用品</h4>
                        <p><strong>纸尿裤：</strong>NB码和S码各1包，透气性好</p>
                        <p><strong>湿纸巾：</strong>无酒精配方，敏感肌适用</p>
                        <p><strong>护臀膏：</strong>预防红屁股，氧化锌成分</p>
                        <p><strong>体温计：</strong>电子体温计，测量准确</p>
                        <p><strong>指甲剪：</strong>婴儿专用，圆头设计</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🎵 早教用品</h4>
                        <p><strong>黑白卡：</strong>视觉刺激，促进大脑发育</p>
                        <p><strong>摇铃：</strong>声音柔和，锻炼听觉</p>
                        <p><strong>布书：</strong>安全材质，培养阅读兴趣</p>
                        <p><strong>音乐盒：</strong>舒缓音乐，安抚情绪</p>
                        <p><strong>健身架：</strong>锻炼四肢协调能力</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>💰 预算规划</h4>
                        <p><strong>必需品：</strong>5000-8000元（基础用品）</p>
                        <p><strong>舒适品：</strong>3000-5000元（提升体验）</p>
                        <p><strong>购买建议：</strong>分批购买，避免浪费</p>
                        <p><strong>品牌选择：</strong>知名品牌，质量保证</p>
                        <p><strong>二手考虑：</strong>大件物品可考虑二手</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- 孕期时间线标签页 -->
        <div id="timeline" class="tab-content">
            <div class="weekly-plan">
                <h2>🗓️ 孕期各阶段重点</h2>
                <div class="week-timeline">
                    <div class="week-item">
                        <h3>当前阶段 (根据计算器显示)</h3>
                        <p><strong>重点：</strong>补铁改善贫血，增加蛋白质摄入</p>
                        <p><strong>建议：</strong>每天红肉100-150g，绿叶蔬菜300g，水果200-300g</p>
                        <p><strong>注意：</strong>少食多餐，避免空腹，餐后适当散步</p>
                    </div>
                    
                    <div class="week-item">
                        <h3>21-24周</h3>
                        <p><strong>重点：</strong>钙质补充，胎儿骨骼发育关键期</p>
                        <p><strong>建议：</strong>每天牛奶500ml，豆制品100g，芝麻酱适量</p>
                        <p><strong>注意：</strong>预防妊娠糖尿病，控制甜食摄入</p>
                    </div>
                    
                    <div class="week-item">
                        <h3>25-28周</h3>
                        <p><strong>重点：</strong>糖耐量筛查期，控制血糖</p>
                        <p><strong>建议：</strong>粗粮代替精米面，增加膳食纤维</p>
                        <p><strong>注意：</strong>定期监测血糖，适量运动</p>
                    </div>
                    
                    <div class="week-item">
                        <h3>29-32周</h3>
                        <p><strong>重点：</strong>预防水肿，控制盐分</p>
                        <p><strong>建议：</strong>低盐饮食，多吃利尿食物如冬瓜、玉米须茶</p>
                        <p><strong>注意：</strong>抬高双腿休息，避免久站</p>
                    </div>
                    
                    <div class="week-item">
                        <h3>33-36周</h3>
                        <p><strong>重点：</strong>为分娩储备体力，增加能量</p>
                        <p><strong>建议：</strong>适量增加碳水化合物，保证充足睡眠</p>
                        <p><strong>注意：</strong>胎位检查，准备待产包</p>
                    </div>
                    
                    <div class="week-item">
                        <h3>37-40周</h3>
                        <p><strong>重点：</strong>临产准备，易消化食物</p>
                        <p><strong>建议：</strong>清淡饮食，多喝汤水，准备巧克力等高能食物</p>
                        <p><strong>注意：</strong>随时准备入院，保持心情愉快</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- 贴心提示标签页 -->
        <div id="tips" class="tab-content">
            <div class="tips-section">
                <h2>💡 贴心小贴士</h2>
                <div class="tips-grid">
                    <div class="tip-card">
                        <h4>🍽️ 饮食原则</h4>
                        <p>少食多餐，每天5-6次；细嚼慢咽，避免暴饮暴食；营养均衡，不偏食挑食。</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>💧 水分补充</h4>
                        <p>每天至少8杯水，可以喝柠檬蜂蜜水、红枣茶等，避免浓茶和咖啡。</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🚫 饮食禁忌</h4>
                        <p>生鱼片、生鸡蛋、未煮熟的肉类；高汞鱼类；酒精和过量咖啡因。</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🏃‍♀️ 适量运动</h4>
                        <p>孕妇瑜伽、散步、游泳等轻度运动，每天30分钟，有助于改善贫血。</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>😴 充足休息</h4>
                        <p>每天保证8-9小时睡眠，午休1小时，左侧卧位有利于胎儿发育。</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🩺 定期检查</h4>
                        <p>按时产检，监测血红蛋白水平，必要时在医生指导下补充铁剂。</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>📱 孕期APP推荐</h4>
                        <p>美柚、宝宝树、妈妈网等，记录孕期变化，获取专业知识。</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🛍️ 购物建议</h4>
                        <p>提前列清单，比较价格，选择信誉好的商家，关注促销活动。</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>👨‍👩‍👧‍👦 家庭准备</h4>
                        <p>与伴侣沟通育儿理念，学习新生儿护理知识，准备迎接新生命。</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>💰 经济规划</h4>
                        <p>制定育儿预算，了解生育保险政策，为宝宝教育基金做准备。</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>📚 知识学习</h4>
                        <p>阅读育儿书籍，参加孕妇学校，学习分娩和育儿技巧。</p>
                    </div>
                    
                    <div class="tip-card">
                        <h4>🎵 胎教建议</h4>
                        <p>播放轻柔音乐，与宝宝对话，保持愉快心情，促进胎儿发育。</p>
                    </div>
                </div>
            </div>
        </div>



        <div class="love-message">
            <h2>💕 给雪莹的话</h2>
            <p>"亲爱的雪莹，你正在经历人生中最美好的时光。每一次的检查、每一口营养的食物，都是对我们宝宝最好的爱。贫血只是暂时的，通过合理的饮食和充足的休息，你会越来越健康。我会一直陪在你身边，一起迎接我们的小天使。你辛苦了，我爱你！💕"</p>
        </div>
        </div> <!-- 结束 content-area -->
    </div> <!-- 结束 main-container -->

    <script>
        // 标签页切换功能
        function showTab(tabName) {
            // 隐藏所有标签内容
            const tabContents = document.querySelectorAll('.tab-content');
            tabContents.forEach(content => {
                content.classList.remove('active');
            });
            
            // 移除所有标签的active状态
            const navTabs = document.querySelectorAll('.nav-link');
            navTabs.forEach(tab => {
                tab.classList.remove('active');
            });
            
            // 显示选中的标签内容
            const selectedTab = document.getElementById(tabName);
            if (selectedTab) {
                selectedTab.classList.add('active');
            }
            
            // 激活对应的导航标签
            const activeNavTab = document.querySelector(`[onclick="showTab('${tabName}')"]`);
            if (activeNavTab) {
                activeNavTab.classList.add('active');
            }
        }

        // 孕期计算功能
        function calculatePregnancy() {
            // 基准日期：2025年8月1日是12周5天
            const baseDate = new Date('2025-08-01');
            const baseDays = 12 * 7 + 5; // 12周5天 = 89天
            
            // 当前日期
            const currentDate = new Date();
            
            // 计算从基准日期到现在的天数差
            const timeDiff = currentDate.getTime() - baseDate.getTime();
            const daysDiff = Math.floor(timeDiff / (1000 * 3600 * 24));
            
            // 计算当前怀孕天数
            const pregnancyDays = baseDays + daysDiff;
            
            // 计算孕期周数
            const pregnancyWeeks = Math.floor(pregnancyDays / 7);
            const remainingDays = pregnancyDays % 7;
            
            // 计算预产期（怀孕280天）
            const conceptionDate = new Date(baseDate.getTime() - (baseDays - 1) * 24 * 60 * 60 * 1000);
            const dueDate = new Date(conceptionDate.getTime() + 280 * 24 * 60 * 60 * 1000);
            
            // 计算距离预产期的天数
            const daysToDue = Math.ceil((dueDate.getTime() - currentDate.getTime()) / (1000 * 3600 * 24));
            
            // 更新页面显示
            document.getElementById('current-date').textContent = currentDate.toLocaleDateString('zh-CN');
            document.getElementById('pregnancy-days').textContent = pregnancyDays;
            document.getElementById('pregnancy-weeks').textContent = `${pregnancyWeeks}周${remainingDays}天`;
            document.getElementById('due-date').textContent = dueDate.toLocaleDateString('zh-CN');
            document.getElementById('days-to-due').textContent = daysToDue > 0 ? daysToDue : '已过预产期';
            
            // 更新页面标题
            const statusText = `怀孕${pregnancyWeeks}周${remainingDays}天 · 用爱呵护每一天`;
            document.getElementById('pregnancy-status').textContent = statusText;
            
            return { pregnancyDays, pregnancyWeeks, remainingDays, dueDate, daysToDue };
        }

        // 页面加载完成后执行
        document.addEventListener('DOMContentLoaded', function() {
            // 计算并显示孕期信息
            calculatePregnancy();
            
            // 为营养卡片添加点击效果
            const cards = document.querySelectorAll('.nutrition-card, .tip-card');
            cards.forEach(card => {
                card.addEventListener('click', function() {
                    this.style.transform = 'scale(1.02)';
                    setTimeout(() => {
                        this.style.transform = '';
                    }, 200);
                });
            });
            
            // 添加爱心飘落效果
            function createHeart() {
                const heart = document.createElement('div');
                heart.innerHTML = '💕';
                heart.style.position = 'fixed';
                heart.style.left = Math.random() * 100 + 'vw';
                heart.style.top = '-50px';
                heart.style.fontSize = Math.random() * 20 + 10 + 'px';
                heart.style.zIndex = '1000';
                heart.style.pointerEvents = 'none';
                heart.style.animation = 'fall 3s linear forwards';
                
                document.body.appendChild(heart);
                
                setTimeout(() => {
                    heart.remove();
                }, 3000);
            }
            
            // 每5秒创建一个爱心
            setInterval(createHeart, 5000);
            
            // 添加CSS动画
            const style = document.createElement('style');
            style.textContent = `
                @keyframes fall {
                    to {
                        transform: translateY(100vh) rotate(360deg);
                        opacity: 0;
                    }
                }
            `;
            document.head.appendChild(style);
            
            // 每分钟更新一次时间（可选）
            setInterval(calculatePregnancy, 60000);
        });
    </script>
</body>
</html>